package priv.pattern.commandmode.combination.basics.impl;

import priv.pattern.commandmode.combination.basics.Kitchen;
import priv.pattern.commandmode.combination.Command;

/*
 * 作者：m鹏h
 * 时间；2024/8/8 23:14
 * 描述：做面的命令
 **/
public class NoodleCommand implements Command {

 /**
  * 持有真正实现命令的接收者--后厨对象
  */
 private Kitchen kitchen;

 public NoodleCommand(Kitchen kitchen) {
  this.kitchen = kitchen;
 }

 @Override
 public void execute() {
  kitchen.noodle();
 }
}
